<strong><?php echo $namaKlien; ?></strong><br />
Nomor Policy &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;<?php echo $noPolis; ?><br />
Periode Asuransi &nbsp;&nbsp;&nbsp;:&nbsp;<?php echo $periodePolis; ?>
<br /><br />
<table border="1">

	<tr>
		<th style="background-color:#CCCCCC; width:60px">
		      <strong>No</th>
 		<th style="background-color:#CCCCCC; width:120px">
		      <strong>Tgl Pengobatan /<br /> Perawatan</strong>		</th>
 		<th style="background-color:#CCCCCC; width:200px">
		      Nama Karyawan		</th>
 		<th style="background-color:#CCCCCC; width:200px">
		      Nama Peserta		</th>
 		<th style="background-color:#CCCCCC; width:80px">
		      No. Reg		</th>
 		<th style="background-color:#CCCCCC; width:80px">
		      Manfaat		</th>
 		<th style="background-color:#CCCCCC; width:120px">
		      Jumlah Klaim (Rp.)	</th>
		<th style="background-color:#CCCCCC; width:120px">
		      Jumlah Pembayaran	</th>      
		<th style="background-color:#CCCCCC; width:120px">
		      Selisih	</th>            
		<th style="background-color:#CCCCCC; width:120px">
		      Tgl Proses Pembayaran	</th>                  
		<th style="background-color:#CCCCCC; width:120px">
		      Keterangan	</th>      
 	</tr>
	<?php 
	$i=1;
	foreach($data as $row){
		
	?>
	<tr>
		<td style="text-align:center">
			<?php echo $i; ?>
		</td>
        <td style="text-align:left">
			<?php echo date('d-m-Y',strtotime($row['tgl_claim'])); ?>
		</td>
       		<td>
			<?php echo $row['karyawan']; ?>
		</td>
       		<td>
			<?php echo $row['peserta']; ?>
		</td>
       	<td style="text-align:left">
			<?php echo $row['no_reg']; ?>
		</td>
       	<td style="text-align:left">
			<?php echo $row['plan']; ?>
		</td>
       	<td style="text-align:right">
			<?php echo $row['nominal']; ?>
		</td>
		<td style="text-align:right">
			<?php echo $row['jumlah_dibayar']; ?>
		</td>
		<td style="text-align:right">
			<?php echo (int)$row['nominal']-(int)$row['jumlah_dibayar']; ?>
		</td>
		<td style="text-align:right">
			<?php echo date('d-m-Y',strtotime($row['tgl_pembayaran'])); ?>
		</td>
		<td style="text-align:left">
			<?php echo $row['remarks']; ?>
		</td>
    </tr>
     <?php 
     $i++;
     }
     ?>

     <tr>
		<td colspan="4">
			&nbsp;
		</td>
        <td colspan="2" style="background-color:#CCCCCC;text-align:center;font-weight:bold;">
			TOTAL
		</td>
       	<td style="text-align:right">
			<?php echo $dataJumlah['jumlah']; ?>
		</td>
		<td style="text-align:right">
			<?php echo $dataJumlahBayar['jumlah_dibayar']; ?>
		</td>
		<td style="text-align:right">
			<?php echo (int)$dataJumlah['jumlah']-(int)$dataJumlahBayar['jumlah_dibayar']; ?>
		</td>
    </tr>
</table>



<?php
function convertTanggal($tgl){

}

?>